﻿<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false"
    CodeFile="LoginDataMaintain.aspx.vb" Inherits="WebForm_OtherData_LoginDataMaintain" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register src="Controls/IPData.ascx" tagname="IPData" tagprefix="uc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:HiddenField ID="hiUID" runat="server" />
            <asp:HiddenField ID="hiDBName" runat="server" />
           
            <asp:ObjectDataSource ID="dbLoginData" runat="server" SelectMethod="GetLoginData" 
                TypeName="AssetManage.BBL.LoginDataBBL">
                  <SelectParameters>
                           <asp:ControlParameter ControlID="txtIP" ConvertEmptyStringToNull="False" 
                            Name="IPAddress" PropertyName="Text" Type="String"  DefaultValue =""/>
                           <asp:ControlParameter ControlID="txtMAC" ConvertEmptyStringToNull="False" 
                            Name="MACaddress" PropertyName="Text" Type="String"  DefaultValue =""/>
                           <asp:ControlParameter ControlID="hiDBName" Name="dbName" PropertyName="Value" 
                           Type="String" />
                           
                           <asp:ControlParameter ControlID="txtComputerName" Name="ComputerName" 
                               PropertyName="Text" DefaultValue ="" ConvertEmptyStringToNull="False"  />
                           
                           <asp:ControlParameter ControlID="txtMAC1" ConvertEmptyStringToNull="False"  DefaultValue =""
                               Name="MAC2" PropertyName="Text" />
                           
                </SelectParameters>    
            </asp:ObjectDataSource>
           
            <table border="1" width="1000px">
                <tr>
                    <td style="text-align: center" colspan ="6">
                        <asp:Label ID="lblTitle" runat="server"  meta:resourcekey="lblTitle" Font-Bold="True"
                            Font-Size="24px"></asp:Label>
                    </td>
                </tr>
                <tr>
                       <td style="text-align: right">
                             <asp:Label ID="lblComputerName" runat="server" meta:resourcekey="lblComputerName" />
                       </td>      
                       <td>
                             <asp:TextBox ID="txtComputerName" runat="server"></asp:TextBox>
                       </td>
                       <td style="text-align: right">
                             <asp:Label ID="lblIP" runat="server" meta:resourcekey="lblIP" /> 
                       </td>
                       <td>
                             <asp:TextBox ID="txtIP" runat="server"></asp:TextBox>
                       </td>
                       <td style="text-align: right">
                             <asp:Label ID="lblMAC" runat="server"  >MAC1</asp:Label>
                       </td>
                         <td>
                             <asp:TextBox ID="txtMAC" runat="server"></asp:TextBox>
                       </td>
                </tr>
                <tr>
                    <td style="text-align: left" colspan ="2">
                        <asp:Label ID="lblfileupload" runat="server" meta:resourcekey="lblfileupload" />
                        <asp:FileUpload ID="fuImport"  runat="server"></asp:FileUpload>
                        <asp:Button ID="btnImport" runat="server" meta:resourcekey="btnImport" />
                    </td>
                    <td align="right">
                        <asp:Label ID="lblAsset_serialNo" runat="server" meta:resourcekey="lblAsset_serialNo" />
                    </td>
                    <td>
                        <asp:TextBox ID="txtAsset_serialNo" runat="server" AutoPostBack="True"></asp:TextBox>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblMAC1" runat="server"  >MAC2</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtMAC1" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: center" colspan ="6">
                        <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />
                    </td>
                </tr>
                <tr style="vertical-align: text-top">
                    <td colspan ="6">
                       
                        <TServerControl:TGridView ID="gvLoginData" runat="server" 
                            AllowHoverEffect="False" AllowHoverSelect="False" AllowPaging="True" 
                            AutoGenerateColumns="False" DataSourceID="dbLoginData" ShowFooterWhenEmpty="False" 
                            ShowHeaderWhenEmpty="True" SkinID="pager" TotalRowCount="0" Width="900px" DataKeyNames="IPAddress">
                            <Columns>
                                <asp:BoundField meta:resourcekey="gvMAC"  DataField ="MACaddress"/>
                                <asp:BoundField meta:resourcekey="gvLoginDate" DataField="LogonDate"  DataFormatString ="{0:yyyy/MM/dd HH:mm:ss}"/>
                                <asp:BoundField meta:resourcekey="gvComputerName" DataField="ComputerName" />
                                <asp:BoundField meta:resourcekey="gvIP" DataField="IPAddress" />
                                <asp:BoundField meta:resourcekey="gvLoginID"  DataField="LogonID" />
                                <asp:TemplateField>
                            <ItemTemplate>
                                <asp:LinkButton ID="lkbLocation" runat="server" meta:resourcekey="lkbLocation" CommandName="LocShow"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                              
                            </Columns>
                            <EmptyDataTemplate>
                                <asp:Label ID="lblEmpty" runat="server" ForeColor="Red" 
                                    meta:resourcekey="lblEmpty"></asp:Label>
                            </EmptyDataTemplate>
                        </TServerControl:TGridView>
                       
                    </td>
                </tr>
                <tr style="vertical-align: text-top">
                    <td colspan="6">
                        <uc1:IPData ID="IPData1" runat="server" Visible="False" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
